package com.vue.power.backend.sys.mapper;

import com.vue.power.backend.sys.dto.OrganizationalStructureDto;
import com.vue.power.backend.sys.entity.OrganizationalStructure;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

import java.util.List;

@Mapper(componentModel = "spring")
public interface OrganizationalStructureMapper {

    @Mapping(target = "title", source = "orgName")
    @Mapping(source = "orgId", target = "orgId")
    OrganizationalStructureDto organizationalStructureToOrganizationalStructureDto(OrganizationalStructure organizationalStructure);


    List<OrganizationalStructureDto> organizationalsStructureToOrganizationalStructureDto(List<OrganizationalStructure> organizationalStructureList);

}
